#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;

import ${package}.service.Services;

/**
 * To use JPA, import JpaConfig in place of DataConfig
 */
@Configuration
@ComponentScan(basePackageClasses=Services.class)
@Import({DataConfig.class})
public class AppConfig {
	
	/**
	 * Properties to support the 'embedded' mode of operation.
	 */
	@Configuration
	@Profile("embedded")
	@PropertySource("classpath:" + "${packageInPathFormat}/config/"
			+ "embedded.properties")
	static class Embedded {
	}

	/**
	 * Properties to support the 'standard' mode of operation.
	 */
	@Configuration
	@Profile("standard")
	@PropertySource("classpath:application.properties")
	static class Standard {
	}
}
